package org.blackcat.dao;

import org.apache.ibatis.annotations.Param;
import org.blackcat.domain.ECG;
import org.blackcat.domain.common.MsgResponse;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 詹泽
 * @date 2017/2/27
 */
@Repository
public interface ECGDao {

    ECG getECGByTime(@Param("userId") String userId,@Param("time") String time);

    Integer getTotalCount(String userId);

    Integer addECG(ECG ecg);

    List<ECG> listECG(@Param("userId") String userId,@Param("pageIndex") int pageIndex,@Param("pageCount") int pageCount);
}
